<?php
include_once ('../sys/sys.php');
header ( 'Content-Type: text/html; charset=utf-8' );

$tid = $_GET['tid'];
$id = $tid;

if(!is_numeric($tid) || $tid < 0){
	show_normal_mesR('TAG ID错误','TAG ID错误','TAG查询');
}


//清空计数
$where = 'id= ' . $id .'';
$DB->do_update('hhtags',
		array(
				'count'					=> "0",
		),
		$where
);
//清空图片列表
$where = 'uid= ' . $id .'';
$DB->do_delete("hhphotos",$where);
echo "<script>history.back();</script>";
echo "清理完毕，请重新采集";



?>